import request from '@/utils/request'

// 查询堡垒机账户列表
export function listIndsvrBastionAccount(query) {
  return request({
    url: '/system/IndsvrBastionAccount/list',
    method: 'get',
    params: query
  })
}

// 查询堡垒机账户详细
export function getIndsvrBastionAccount(id) {
  return request({
    url: '/system/IndsvrBastionAccount/' + id,
    method: 'get'
  })
}

// 新增堡垒机账户
export function addIndsvrBastionAccount(data) {
  return request({
    url: '/system/IndsvrBastionAccount',
    method: 'post',
    data: data
  })
}

// 修改堡垒机账户
export function updateIndsvrBastionAccount(data) {
  return request({
    url: '/system/IndsvrBastionAccount',
    method: 'put',
    data: data
  })
}

// 删除堡垒机账户
export function delIndsvrBastionAccount(id) {
  return request({
    url: '/system/IndsvrBastionAccount/' + id,
    method: 'delete'
  })
}
